package com.ruoyi.qywx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.Date;

/**
 * @author : hcl
 * @Date : 2023/9/6 18:39
 */
@TableName("qy_external_group_chat_member")
@Data
@JsonIgnoreProperties(value = {"state", "userId"})
public class ExtGroupChatMember {
    //主键id
    @TableId(type = IdType.AUTO)
    private Long id;
    //群聊id
    private Long chatId;
    //项目id
    private Long teamId;
    /**
     * 成员类型
     * 1 - 企业成员
     * 2 - 外部联系人
     */
    private Integer userType;
    //成员id
    private String userId;
    //成员昵称
    private String name;
    //成员类型0:普通群成员,1:管理员,2:群主
    private Integer adminType;
    //加入群聊时间
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;
    //加入渠道
    private Integer joinScene;
    //群成员是否开启会话存档
    private Boolean msgArchive;
    //是否退群
    private Boolean isDelete;
    //退群时间
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date exitTime;
    //入群渠道参数
    private String state;
}
